package com.kob.botrunningsystem.Service.impl;

import com.kob.botrunningsystem.Service.BotRunningService;
import com.kob.botrunningsystem.Service.impl.utils.BotPool;
import org.springframework.stereotype.Service;

/**
 * @author molimark<br />
 * @date: 2023/3/31 23:40<br/>
 * @description: <br/>
 */

@Service
public class BotRunningServiceImpl implements BotRunningService {
    public final static BotPool botPool = new BotPool();
    @Override
    public String addBot(Integer userId, String botCode, String input) {
        botPool.addBot(userId,botCode,input);
        System.out.println("addBot: " + userId + " " + botCode + " " + input);
        return "addBotSuccess";
    }
}
